package xyz.xiaomeiqiu.study.domain;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;


@Component
@ConfigurationProperties(prefix = "xiaomeiqiu.school.classes")
public class Klass {

    private String klassName;

    private String klassId;

    private List<Student> students = new ArrayList<>();

    public Klass() {
    }

    public Klass(String klassId, String klassName, List<Student> students) {
        this.klassId = klassId;
        this.klassName = klassName;
        this.students = students;
    }

    public String getKlassName() {
        return klassName;
    }

    public void setKlassName(String klassName) {
        this.klassName = klassName;
    }

    public List<Student> getStudents() {
        return students;
    }

    public void setStudents(List<Student> students) {
        this.students = students;
    }

    public String getKlassId() {
        return klassId;
    }

    public void setKlassId(String klassId) {
        this.klassId = klassId;
    }
}
